package com.szsh.aiot.hsm.domain.device;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;

/**
 * redis保存的设备漏洞信息
 * 
 * @author luohuawuyin
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DeviceLeak {

    /** 设备ID */
    private Long deviceID;
    /** 漏洞接收时间 */
    private Date reciveTime;
    /** 漏洞产生时间 */
    private Date tstamp;
    /** 扫描端口 */
    private int port;
    /** 识别的服务类型 */
    private String serviceName;
    /** 漏洞类型：网关弱密码、风险端口 */
    private int leakType;

    public Long getDeviceID() {
        return deviceID;
    }

    public void setDeviceID(Long deviceID) {
        this.deviceID = deviceID;
    }

    public Date getReciveTime() {
        return reciveTime;
    }

    public void setReciveTime(Date reciveTime) {
        this.reciveTime = reciveTime;
    }

    public Date getTstamp() {
        return tstamp;
    }

    public void setTstamp(Date tstamp) {
        this.tstamp = tstamp;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public int getLeakType() {
        return leakType;
    }

    public void setLeakType(int leakType) {
        this.leakType = leakType;
    }

}
